package com.xnfh.field.viewmodel

import com.xnfh.common.bean.SoilMessage
import com.xnfh.common.bean.SoilZdMessage
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.api.ApiService
import com.xnfh.network.base.BaseRepository
import com.xnfh.network.manager.ApiManager

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/11/29 15:09
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/11/29 15:09
 * @UpdateRemark: 更新说明
 */
class SoilMessageViewModelRes : BaseRepository() {

    suspend fun requestSoilZdMessage(fieldId: String,lonlats: String, soilZdMessage: RespStateData<SoilZdMessage>) = dealResp(
        {ApiManager.api.requestSoilZdMessage(fieldId,lonlats)},soilZdMessage
    )
}